package io.github.lee.core.vm.err

import android.content.Context
import io.github.lee.core.ui.R


open class ViewModelException(val code: Int, val text: String?) : Throwable(text) {

    fun format(context: Context): String =
        context.getString(R.string.ui_error_vm_exception, code, text)


}

